package com.sie.zhq.tool;

import android.content.Context;
import android.widget.Toast;

public class ToastUtils {

	private static Toast mToast;

	private static boolean isNo = false;
	public static void showToast(Context context, String text) {
		if(isNo){
			if (mToast == null) {
				mToast = Toast.makeText(context, text, Toast.LENGTH_SHORT);
			} else {
				mToast.setText(text);
				mToast.setDuration(Toast.LENGTH_SHORT);
			}
			mToast.show();
		}
	
	}
}
